package jeopardy.common.protocol.game.stats;

import java.io.Serializable;

/*
 * This class is used by client to request from server a list of available games.
 */

public class ShowGameListResMsg implements Serializable{
	
	private static final long serialVersionUID = 7777772L;
		
	private String[] playing = null;
	private String[] waiting = null;
	
	public ShowGameListResMsg(String[] playing, String[] waiting){
		this.playing = playing;
		this.waiting = waiting;
	}

	/**
	 * Returns array of gameIDs that are currently in progress.
	 * <code>null</code> if there was an error servicing the request (bad auth?)
	 * @return
	 */
	public String[] getPlaying() {
		return playing;
	}

	/**
	 * Returns array of gameIDs that are currently waiting for player(s).
	 * <code>null</code> if there was an error servicing the request (bad auth?)
	 * @return
	 */
	public String[] getWaiting() {
		return waiting;
	}
}
